package com.cn.study008;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author lw
 * @ClassName Test8004.java
 * @Description
 * @createTime 2023年05月14日 18:03:00
 */
public class Test8004 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int[] score=new int[5];
        System.out.println("请输入5位学员的成绩：");
        for (int i = 0; i < score.length; i++) {
            score[i]=sc.nextInt();
        }
        Arrays.sort(score);
        System.out.print("学员成绩按升序排列：");
        for (int i = 0; i < score.length; i++) {
            System.out.print(score[i]+" ");
        }
    }
}
